package org.senzacontrollo.designPatterns.mediator;


public class Teller extends BankEntity{
	
	private boolean isFree;
	
	public Teller(BankServiceOrganizer bso) {
		super(bso);
		isFree = true;
	}
	
	public void initService(Queue q){
		if(isFree){
			q.dequeue();
		}
	}
	
	public void endService(){
		isFree = true;
		changed();
	}

	public boolean isFree() {
		return isFree;
	}

	public void setFree(boolean isFree) {
		this.isFree = isFree;
	}
	
	
	

}
